package com.aaa.os.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @FileName: RemoteProductService
 * @Description: 远程调用商品服务
 * @Author: CH
 * @CreateTime: 2025/10/14 9:08
 * @Version: 1.0.0
 */
@FeignClient(name = "GoodsService")
public interface RemoteProductService {
    /**
     * 修改商品月销量
     * @param productId
     * @return
     */
    @PostMapping("/product/updateMonthlySales")
    //传递单个参数，必须使用@RequestParam注解，否则无法传递
    int updateMonthlySales(@RequestParam("productId") Integer productId);
}
